import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86138
 * Date: 2024-10-18
 * Time: 20:29
 */
public class Test {
    public static void main(String[] args) {
        Telephone user1 = new Telephone("13567845633",80000,"123456");
        Telephone user2 = new Telephone("13589999999",90000,"234567");
        Telephone user3 = new Telephone("18495558399",10,"345678");

        user1.ring();

        System.out.println();

        Scanner s1 = new Scanner(System.in);
        System.out.print("请输入扣款金额->");
        double money = s1.nextDouble();
        user1.reduce(money);

        System.out.println();

        user1.balance(user1.balance);
    }
}
